//
//  RHMePolicyModel.h
//  RuiHeApp
//
//  Created by Yan Chen on 2025/1/21.
//

#import "BaseModel.h"
#import "DevSettingOptionModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RHMePolicyModel : BaseModel
@property (nonatomic, copy) NSString *sectionTitle;

@property (nonatomic, copy) NSString *type;//数据类型(样式) 选择项,开关项,输入项

@property (nonatomic, copy) NSString *rowTitle;

@property (nonatomic, copy) NSString *key;

@property (nonatomic, copy) NSString *enumText;//枚举选项所对应的值,用于展示

@property (nonatomic, copy) NSString *content; //如果是枚举值,存的是下标

@property (nonatomic, copy) NSString *comment;//注释

@property (nonatomic ,copy) NSString *format;//数据类型

@property (nonatomic ,copy) NSString *max; //最大值

@property (nonatomic ,copy) NSString *min; //最小值

@property (nonatomic ,copy) NSString *ratio; // 比例

//寄存器地址
@property (nonatomic ,assign) NSInteger regAddr;
//位宽
@property (nonatomic ,assign) NSInteger num;
//偏移量
@property (nonatomic ,assign) NSInteger offset;


@property (nonatomic, strong) NSArray <RHMePolicyModel*> *rows;

@property (nonatomic, strong) NSArray <RHMePolicyModel*> *items;

@property (nonatomic ,copy) NSArray<DevSettingOptionModel *> *selectList;

@property (nonatomic, assign) BOOL readOnly;

- (void)readDefult:(NSDictionary *)dic ;
@end

NS_ASSUME_NONNULL_END
